from configparser import ConfigParser
from configparser import ConfigParser

#获取config.ini中汇率数据
def getIni(section:str, key:str) -> str:
    conf = ConfigParser()
    conf.read("config.ini","utf-8")
    print(conf.has_section(section))
    if conf.has_section(section):
        return conf.get(section, key)
    else:
        return "没有值"


